ac2abe487202b170738f2e032b11111fcc51ada5,cdap-common/src/main/java/co/cask/cdap/common/lang/ProgramResources.java,ProgramResources,createBaseResources,#,145

Before Change


    ClassLoader classLoader = ProgramResources.class.getClassLoader();

    // Gather resources information for cdap-api classes
    Set<ClassPath.ClassInfo> apiResources = getResources(getClassPath(classLoader, Application.class),
                                                         CDAP_API_PACKAGES, Sets.<ClassPath.ClassInfo>newHashSet());
    // Trace dependencies for cdap-api classes
    Set<String> result = findClassDependencies(classLoader,
                                               Iterables.transform(apiResources, CLASS_INFO_TO_CLASS_NAME),
                                               Sets.<String>newHashSet());

After Change


    ClassLoader classLoader = ProgramResources.class.getClassLoader();

    // Gather resources information for cdap-api classes
    ClassPath apiClassPath = getClassPath(classLoader, Application.class);
    // Add everything in cdap-api as visible resources
    Set<String> result = Sets.newHashSet(Iterables.transform(apiClassPath.getResources(),
                                                             RESOURCE_INFO_TO_RESOURCE_NAME));
    // Trace dependencies for cdap-api classes
    findClassDependencies(classLoader, Iterables.transform(apiClassPath.getAllClasses(), CLASS_INFO_TO_CLASS_NAME),